using Making.Avalonia.WebView.Core.Services;
using Microsoft.Extensions.DependencyInjection;

namespace Making.Avalonia.WebView.Windows;

public static class WindowsWebViewExtensions
{
    public static void RegisterWindowsWebView(this IServiceCollection services)
    {
        services.AddSingleton<WindowsWebViewProvider>();
        WebViewProviderFactory.RegisterProvider<WindowsWebViewProvider>(SupportedPlatform.Windows);
    }
}